import request from "./request.js";
// request  就是 那个request.js 文件中开放出来的 ins
export const GetHomeList = ()=>request.get("/index/index");//主页
export const GetHistory= ()=>request.get("/search/index"); //搜索历史
export const GetSerachlist= (params)=>request.get("/search/helper",{params});//搜索列表
export const GetGoodlist= (params)=>request.get("/goods/list",{params}); //搜索商品列表
export const GetClassify= ()=>request.get("/catalog/index"); //分类
export const Clearhistory= ()=>request.post("/search/clearhistory");//清空搜索历史
export const Gettopiclist= (params)=>request.get("/topic/list",{params});// 专题页
export const GetBranck= (params)=>request.get("/brand/detail",{params}); //首页的品牌
export const GetChannel= (params)=>request.get("/goods/category",{params});//首页分类
export const GetChannelList= (params)=>request.get("/goods/list",{params});//首页分类的商品数据
export const GetCurrent= (params)=>request.get("/catalog/current",{params});//获取分类页当前的商品
export const PostUser= (params)=>request.post("/auth/loginByWeb",params);//登录
export const GetGoodsDetail= (params)=>request.get("/goods/detail",{params});//首页新品的详情
export const GetGoodsrelated= (params)=>request.get("/goods/related",{params});//首页新品的相关产品
export const Addcart= (params)=>request.post("/cart/add",params);//加入购物车
export const Getcartgood= (params)=>request.post("/cart/goodscount",params);//获取购物车的数量
export const Cartlist= (params)=>request.get("/cart/index",params);//购物车页面
export const CartUpdate= (params)=>request.post("/cart/update",params);//步进器的数据编写
export const Cartchecked= (params)=>request.post("cart/checked",params);//商品的选中的状态
export const CartDel= (params)=>request.post("/cart/delete",params);//删除商品

// export const xxxx = ()=>request.get("/xxxx/xxx");
/*
  export const 常量名 = function(){
    return request.get("/index/index");
  }
*/
